package org.example.platform.design.decoration;

import org.example.platform.design.decoration.version.*;

/**
 * 装饰模式
 */
public class Test {
    public static void main(String[] args) {
//        Person person = new Person();
//        person.ShangYi("T恤");
//        person.XiaYi("短裤");
//        person.XieZi("球鞋");
//        person.setName("小红");
//        person.show();

        Person2 person2 = new Person2("夏普");
        // 装饰模式
        Sy sy = new Sy();
        Xy xy = new Xy();
        Xz xz = new Xz();
        Zs zs = new Zs();
        zs.Dec(person2);
        xz.Dec(zs);
        xy.Dec(xz);
        sy.Dec(xy);
        sy.show();

    }
}
